package com.anhuanjia.tools.eao.config;

import com.efastsoft.framework.Config;
import com.efastsoft.framework.utility.ObjectUtil;
import com.efastsoft.platform.FixedConfigItem;

public class GoogleMapKeyConfig extends FixedConfigItem {
	public static final String ID = "Eao.googleMapKEY";
	
	public GoogleMapKeyConfig() {
		super(ID, "ShortText", "Text", "Eao百度地图KEY", "com.anhuanjia.tools.eao");
	}
	
	public static String getValue() {
		String v = Config.getValue(ID);
		if (ObjectUtil.empty(v)) {
			v = Config.getContextPath();
		}
		if (v.endsWith("/")) {
			return v.substring(0,v.length()-1);
		}
		return v;
	}
	
}
